package com.buaa.student.mapper;

import com.buaa.student.pojo.Student;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.sql.Date;
import java.util.ArrayList;

@Mapper
@Repository
public interface DakaMapper {

    int addRecord(@Param("xingming") String xingming,
                  @Param("xuehao") String xuehao,
                  @Param("date") Date date);

    ArrayList<Student> getTodayWeiDaka(@Param("date") Date date);

    ArrayList<Date> queryHistoryByXingming(@Param("xingming") String xingming);

    int elimintaeDup();

    ArrayList<Student> getNTimes(@Param("minTime") int minTime, @Param("maxTime") int maxTime);

}
